

<?php
	$quyen = new quyenbs();
	$danhsach = $quyen->LayDanhSach();
	session_start();
	$nhatky = new nhatkybs();
	$nhatky->TenSuKien = "Xem danh sách quyền hạn";
	$nhatky->MaNguoiDung = $_SESSION["MaND"];
	date_default_timezone_set('Asia/Ho_Chi_Minh');
	$nhatky->ThoiGian = date("Y-m-d H:m:s", time());
	$nhatky->Them();
?>
<table id="rounded-corner" class="display" summary="" border="1">
	<thead>
		<tr>
			<th align="center" colspan="13">
	               	<h2><strong>DANH SÁCH QUYỀN HẠN</strong></h2>
			</th>
		</tr>
		<tr>
			<th scope="col" class="rounded">Mã quyền hạn</th>
			<th scope="col" class="rounded">Tên quyền hạn</th>
		</tr>
	</thead>
	<tfoot>
            <tr>
                <th>Mã quyền hạn</th>
                <th>Tên quyền hạn</th>            
            </tr>
    </tfoot>
	<tbody>
		<?php
				$stt = 1;
				for($i = 0; $i < ($danhsach == false ? 0 : count($danhsach)); $i++)
				{
					echo "<tr>";
					echo "<td>{$danhsach[$i]['MaQuyen']}</td>";
					echo "<td>{$danhsach[$i]['TenQuyen']}</td>";
					echo "</tr>";
					$stt++;
				}	
			?>
	</tbody>
</table>